package service;

import dao.userMapper;
import entity.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddUserService {
    @Autowired
    private userMapper userMapper;

    public boolean addUser(user user){
        int insert = userMapper.insert(user);
        if(insert > 0){
            return true;
        }
        return false;
    }
}
